package com.aios.util;

import java.text.DecimalFormat;
import java.util.Random;

public class DoubleUtil {
	
	private static DecimalFormat df = new DecimalFormat("###.###");
	private static Random r = new Random();
	
	private static final int rangeMin = 20;
	private static final int rangeMax = 200;
	
	public static Double getDoubleStringWithinRange() {
		double randomValue = rangeMin + (rangeMax - rangeMin) * r.nextDouble();
		return new Double(df.format(randomValue));
	}

}
